// Screen.h
#ifndef SCREEN_H
#define SCREEN_H

#include <vector>

class Screen {
public:
    // 获取唯一实例
    static Screen& getInstance();

    // 初始化屏幕尺寸
    void initialize(int width, int height);

    // 清空屏幕（用空格填充）
    void clear();

    // 禁止拷贝和赋值
    Screen(const Screen&) = delete;
    Screen& operator=(const Screen&) = delete;

private:
    Screen();   // 构造函数私有
    ~Screen();  // 析构函数私有

    int width_;
    int height_;
};

#endif // SCREEN_H
